package com.example.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DemoController {

    private static final Logger logger = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping("/{page}")
    public String showInfo(@PathVariable String page, Integer id, String name) {
        logger.info("id:{}", id);
        logger.info("name:{}", name);
        return page;
    }

}
